package com.qf.service.impl;

import com.qf.mapper.ProjectMapper;
import com.qf.model.Project;
import com.qf.service.ProjectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName ProjectServiceImpl
 * @Description TODO
 * @Author 86181
 * @Date 2022/9/7 0:38
 * @Version 1.0
 **/
@Service
public class ProjectServiceImpl implements ProjectService {
    public ProjectServiceImpl(){
        System.out.println("业务层执行了");
    }
    @Autowired
    private  ProjectMapper projectMapper;
    @Override
    public List<Project> findAllProject() {
        List<Project> all = projectMapper.findAll();
        for (Project project : all) {
            System.out.println(project);
        }
        return all;
    }
}
